package com.baidu.controller;

import com.baidu.service.impl.ActivityControllerImpl;
import com.until.pagination.PaginationRequest;
import com.until.response.RestfulCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author user
 */
@RestController
@RequestMapping("active")
public class ActivityController {
    @Autowired
    private ActivityControllerImpl activityControllerImpl;

    @GetMapping("user/{id}")
    public RestfulCode.CodeSatCode findAll(@PathVariable Integer id, PaginationRequest page){
        return activityControllerImpl.findAll(id,page);
    }
}
